﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 徐州学校出库单新增字段1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "Iineitem",
                table: "TShippingLockCells",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "ModelSpec",
                table: "TShippingLockCells",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "PurchaseIineitem",
                table: "TShippingLockCells",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "RetreatNum",
                table: "TShippingLockCells",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "RetreatUnitCode",
                table: "TShippingLockCells",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "RetreatUnitName",
                table: "TShippingLockCells",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TMaterialCode",
                table: "TShippingLockCells",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TMaterialName",
                table: "TShippingLockCells",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Iineitem",
                table: "TShippingLockCells");

            migrationBuilder.DropColumn(
                name: "ModelSpec",
                table: "TShippingLockCells");

            migrationBuilder.DropColumn(
                name: "PurchaseIineitem",
                table: "TShippingLockCells");

            migrationBuilder.DropColumn(
                name: "RetreatNum",
                table: "TShippingLockCells");

            migrationBuilder.DropColumn(
                name: "RetreatUnitCode",
                table: "TShippingLockCells");

            migrationBuilder.DropColumn(
                name: "RetreatUnitName",
                table: "TShippingLockCells");

            migrationBuilder.DropColumn(
                name: "TMaterialCode",
                table: "TShippingLockCells");

            migrationBuilder.DropColumn(
                name: "TMaterialName",
                table: "TShippingLockCells");
        }
    }
}
